package com.as.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Test entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "test", catalog = "calculate")
public class Test implements java.io.Serializable {

	// Fields

	private String testid;
	private String userid;
	private String qlid;
	private String testscore;
	private String testtime;
	private Integer state;

	// Constructors

	/** default constructor */
	public Test() {
	}

	/** minimal constructor */
	public Test(String testid) {
		this.testid = testid;
	}

	/** full constructor */
	public Test(String testid, String userid, String qlid, String testscore,
			String testtime, Integer state) {
		this.testid = testid;
		this.userid = userid;
		this.qlid = qlid;
		this.testscore = testscore;
		this.testtime = testtime;
		this.state = state;
	}

	// Property accessors
	@Id
	@Column(name = "testid", unique = true, nullable = false, length = 30)
	public String getTestid() {
		return this.testid;
	}

	public void setTestid(String testid) {
		this.testid = testid;
	}

	@Column(name = "userid", length = 30)
	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@Column(name = "qlid", length = 30)
	public String getQlid() {
		return this.qlid;
	}

	public void setQlid(String qlid) {
		this.qlid = qlid;
	}

	@Column(name = "testscore", length = 30)
	public String getTestscore() {
		return this.testscore;
	}

	public void setTestscore(String testscore) {
		this.testscore = testscore;
	}

	@Column(name = "testtime", length = 30)
	public String getTesttime() {
		return this.testtime;
	}

	public void setTesttime(String testtime) {
		this.testtime = testtime;
	}

	@Column(name = "state")
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

}